﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="MemberRight.aspx.cs" Inherits="ZF.WS.Admin.MemberRight" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

     

    <script>

        $(function() {
            $(":checkbox#more").click(function() {
                if (this.checked) {
                    $("tbody.other").show();

                } else
                    $("tbody.other").hide();
            });
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="editContainer">
        <table class=" w100_  edit ">
            <tbody>
                <tr>
                    <th colspan="4">
                        <div class="c">
                            设置管理员权限</div>
                    </th>
                </tr>
                <tr>
                    <td class="lr" colspan="4">
                    <style>
                    .mr td{ background:#D4E4F6}
                    .mr  .t1,.mr  .t2{ text-align:center;}
                    .mr  .t3,.mr  .t4{ padding-left:5px;}
                    </style>
                        <div class="c mr">
                        
                            <table class="w100_" style="background:#efefef">
                                <tr>
                                    <th class="t1">
                                        序号
                                    </th>
                                    <th class="t2"><input type="checkbox" class="checkAll" bind=".mr" />选择
                                    </th>
                                    <th class="t3">
                                        模块名称
                                    </th>
                                    <th class="t4">
                                        备注
                                    </th>
                                </tr>
                                <zf:ListView runat="server" ID="lvModule">
                                    <LayoutTemplate>
                                        <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                                        </zf:PlaceHolder>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td class="t1">
                                                <%#Container.DataItemIndex+1 %>
                                            </td>
                                            <td class="t2">
                                                <input type="checkbox" value="<%#Eval("Type") %>" <%#(bool)Eval("IsRight")?"checked=checked":"" %>  />
                                            </td>
                                            <td class="t3">
                                                <%#Eval("ModuleName") %>
                                            </td>
                                            <td class="t4">&nbsp;
                                                <%#Eval("Description")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </zf:ListView>
                            </table>
                          
                        </div>
                        <zf:TextBox runat="server" ID="tbRight" class="lltxt dn_"></zf:TextBox>
                        <script>
                            $(function() {
                                $(document.forms[0]).submit(function() {
                                    var right = "";
                                 
                                    $(".mr input:checked").each(function() {

                                        right += this.value + ",";
                                    });
                             
                                    $(".tbRight").val(right);
                                
                                });
                            });
                        </script>
                    </td>
                </tr>
                 
            </tbody>
            <tbody>
                <tr class="b">
                    <td colspan="4">
                        <div>
                            <zf:Button ID="btAdd" class="linkbtn addSubmit" runat="server" OnClick="EditSubmit"
                                Text=" 提 交 "></zf:Button>
                            <input type="button" class="linkbtn" value=" 重 写 " onclick="doPage('FilesList.aspx');" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
